package ru.pb.game.network.engine.listener;

import ru.pb.game.network.GNetworkEngine;
import ru.pb.global.network.engine.NioService;
import ru.pb.global.network.engine.core.interfaces.NioServiceListener;

public class AuthServerListener implements NioServiceListener
{
	private boolean _shutdown;

	@Override
	public void serviceActivated(NioService service)
	{}

	@Override
	public void serviceDeactivated(NioService service)
	{
		if( !_shutdown)
		{
			GNetworkEngine.getInstance().connect();
		}
	}

	@Override
	public void serviceShutdown(boolean val)
	{
		_shutdown = val;
	}
}
